﻿using System.Web.Security;

namespace MvcMembership.Controllers
{
	public class OpenIDController : OpenIDController_Base
	{
		public OpenIDController()
			: this( null, null ) {}

		public OpenIDController( IFormsAuthentication formsAuth, MembershipProvider provider )
			: base( formsAuth, provider ) {}

		protected override string AssociateOpenIdIdentityToUserName( string openIdIdentity )
		{
			var user = Provider.GetUser( openIdIdentity, true );
			return ( user == null ? null : openIdIdentity );
		}
	}
}